<? session_start(); ?>

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<? include("../../MerchandiseBay/conn.php");?>
 
<?
$id=$_REQUEST['d'];

   $sqlMerchandise="select * from merchandise where id='$id'";
   $qryMerchandise=mysql_query($sqlMerchandise,$conn);
   $row=mysql_fetch_assoc($qryMerchandise);
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<div align="center">
	
  <table border="0" width="53%" id="table1" bgcolor="#F7F7F7">
    <tr bgcolor="#FFFF66"> 
      <td colspan="2"><font color="#000066" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Information 
        product </strong></font></td>
    </tr>
    <tr>
      <td align="right"><b><font face="Verdana" size="2">Code Product :</font></b></td>
      <td align="left"><font size="2" face="Verdana"> &nbsp; 
        <?=$row['regno']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2">Category:&nbsp; 
        </font></b></td>
      <td align="left" width="81%"><font size="2" face="Verdana">&nbsp; 
        <?=$row['category']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2">Kind :</font></b></td>
      <td align="left" width="81%"><font size="2" face="Verdana">&nbsp; 
        <?=$row['kind']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2">Date :</font></b></td>
      <td align="left" width="81%"><font size="2" face="Verdana">&nbsp; 
        <?=$row['entered_date']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2">Price :</font></b></td>
      <td align="left" width="81%"><font size="2" face="Verdana">&nbsp; 
        <?=$row['price']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2"> Comment:</font></b></td>
      <td align="left" width="81%"><font size="2" face="Verdana"> &nbsp; 
        <?=$row['comment']?>
        </font></td>
    </tr>
    <tr> 
      <td align="right" width="81%"><b><font face="Verdana" size="2">Picture :</font></b></td>
      <td align="left" width="81%">&nbsp;</td>
    </tr>
    <tr> 
      <td align="right" width="81%" colspan="2"> <p align="center"> <img border="0" src="productpic/<?=$row['pic']?>" ></td>
    </tr>
    <tr> 
      <td align="right" width="81%" colspan="2"> &nbsp; 
        <?
			if(isset($_SESSION['admin']))
			   { 
			   if($row['sold_date']=="0000-00-00")
			     { ?>
        Status : Still not sold - <a href="sold.php?d=<?=$row['id']?>">Sold now</a> 
        <? }
			   else
			     { ?>
        Sold on: 
        <?=$row['sold_date']?>
        <?}}?>
      </td>
    </tr>
  </table>
</div>

</body>

</html>